package study.mq.rocketmq.producer.support.utils;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.client.producer.SendResult;

@Slf4j
public class ResultUtils {

    public static void print(SendResult result) {
        log.info("       msg_id= {}", result.getMsgId());
        log.info("offset_msg_Id= {}", result.getOffsetMsgId());
        log.info(" queue_offset= {}", result.getQueueOffset());
        log.info("  send_status= {}", result.getSendStatus());
        log.info("message_queue= {}", result.getMessageQueue());
    }
}
